package web.zipcode;

import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import common.misc.StringMisc;

import common.command.BaseCommand;

public class ZipcodeSearchDongDOCommand extends BaseCommand {

    public void execute( HttpServletRequest request, HttpServletResponse response ) throws ZipcodeException {

        String dong = request.getParameter( "dong" );
System.out.println("dong==" + dong );
        ZipcodeControl control = new ZipcodeControl();

        ArrayList list = null;
        
        if ( StringMisc.isAvailable( dong ) )
            list = control.searchByDong( dong );

        request.setAttribute( "zipcode.search.dong.list", list );
System.out.println("list==" + list.size( ) );	
        nextPage = "/jsp/zipcode/zipcode_search.jsp";

    } // end method

} // end class